<?php
/*
 * This is cord blood donation page.
 */
?>
<script>
    $(document).ready(function(){
        $( "#r1" ).buttonset();
        $(":radio:eq(0)").click(function(){
                    
            $("#div_name").show(1000);
             
        });

        $(":radio:eq(1)").click(function(){
            document.getElementById("div_name").visibility = true;
            $("#div_name").hide(1000);
        });
        $( "#datepicker1,#datepicker2" ).datepicker({
            showOn: "button",
            buttonImage: "../../include/images/calendar.gif",
            buttonImageOnly: true
        });

    });
</script>
<p>Cord blood comes from a newborn baby's umbilical cord and placenta. It contains potentially lifesaving cells called stem cells.</p>
<p>Cord blood stem cells, like stem cells from bone marrow, can be used to treat some cancers, immune deficiency diseases, metabolic disorders, and inherited disorders such as sickle cell anemia. Donated cord blood is also used for research to improve treatment for future patients. To learn more about medical uses for cord blood, see our overview of cord blood banking.</p>
<p>When you donate your baby's cord blood, it's stored in a public cord blood bank for anyone who needs it. Donating cord blood to a public bank is free, and it's safe and painless for you and your child because it's collected after your baby is born and the umbilical cord is cut. (To preserve your child's cord blood for your own family's use, you can pay to store it in a private bank.)</p>
<p>There's a network of public cord blood banks that can take your donation. Most public banks are nonprofit organizations, and all public cord blood banks must meet stringent quality standards.</p>
<p>If you meet the eligibility requirements and the cord blood from your baby is determined to be suitable for transplant, it is stored at a public cord blood bank and the cord blood unit is listed on the National Marrow Donor Program's Be The Match Registry.</p>
<p>Once on the registry, the donation can be accessed by transplant physicians to treat patients needing stem cell transplants. Public cord blood banks keep the names of mothers and babies confidential to protect families' privacy. Cord blood that doesn't meet the requirements for transplant may be used for medical research to help improve treatments in the future, or it may be discarded.</p>
<p>If you decide to donor your cord blood then get started by finding out whether the hospital where you plan to deliver your baby collects cord blood for public donation. Not every hospital does.</p>
<p>You can check the up-to-date list of affiliated collection hospitals provided by the National Marrow Donor Program. If your hospital is listed, contact the public cord blood bank that works with your hospital for more information.</p>




<?php
include '../../include/config.php';
$dnt = mysql_query("select * from baby_blood_donate where bid='".$_COOKIE['bid']."'") or die(mysql_error()) ;
$q = $dnt;
$a = mysql_num_rows($dnt);

if ($a!=0) {
    echo '<hr><b>Donated :</b><br>';
    $sr = 1;
    ?>


    <table style="width: 600px; text-align: center; " >
        <tr>
            <th style="width: 20px;" >SR</th>
            <th style="width: 100px;" >DATE</th>
            <th style="width: 100px;" >TIME</th>
            <th style="width: 100px;" >DEPARTMENT</th>
            <th style="width: 250px;" >NOTE</th>
        </tr>
        <?php while ($row1 = mysql_fetch_array($q)) { ?>
        <tr>
            <td><?=$sr?></td>
            <td><?=$row1['2']?></td>
            <td><?=$row1['3']?></td>
            <td><?=$row1['4']?></td>
            <td><?=$row1['5']?></td>
            
        </tr>
        <?php $sr++;   } ?>
    </table>



    <?php
}
?>

<hr>
<b>You decide to donor your cord blood?</b>
<input type="radio" id="r1" name="donat" value="1" checked="checked"/> Yes
<input type="radio" id="r1" name="donat"  value="0" /> No<br>

<br>

<div id="div_name"  >
    <fieldset>
    <legend>Yes. (press NO to cancle.)</legend>
    <form action="../birth/donate.php" method="post" >
        <table>
            <tr>
                <td>DATE :</td>
                <td> <input type="text" id="datepicker1"  name="dt" required />  </td>
            </tr>
            <tr>
                <td>At Time :  </td>
                <td><input type="text" name="tme" required /> (hour AM/PM eg. 2 PM)</td>
            </tr>
            <tr>
                <td>Department :</td>
                <td>
                    <input type="radio" name="dept" value="Public" required />Public
                    <input type="radio" name="dept" value="Private" required />Private
                </td>
            </tr>
            <tr>
                <td>Note :</td>
                <td><input type="text" name="note" required /></td>
            </tr>
            <tr>
                <td><input type="submit" value="OK" /> </td>
                <td></td>
            </tr>
        </table>
    </form>
    </fieldset>
    <br><br><br><br>
</div>

